﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sendz.Domain;
using System.ComponentModel;

namespace Sendz.WebUI.Models
{
    public class LostPasswordViewModel
    {
        [DisplayName("Username")]
        [Required(ErrorMessage = "Please enter your username")]
        public string Username { get; set; }
        [DisplayName("Email")]
        [Required(ErrorMessage = "Please enter your email address")]
        [RegularExpression(@"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$", ErrorMessage = "Please enter a valid email address")]
        public string Email { get; set; }
    }
}